package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_controller_0 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_controller_0() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_21 = new TagInfo("c:get", //$NON-NLS-1$
            1, 21,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_20 = new TagInfo("c:get", //$NON-NLS-1$
            5, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_20 = new TagInfo("c:get", //$NON-NLS-1$
            6, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_20 = new TagInfo("c:get", //$NON-NLS-1$
            7, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_20 = new TagInfo("c:get", //$NON-NLS-1$
            8, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_26_1 = new TagInfo("java:format", //$NON-NLS-1$
            26, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_27_14 = new TagInfo("c:get", //$NON-NLS-1$
            27, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_28_37 = new TagInfo("c:get", //$NON-NLS-1$
            28, 37,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_30_2 = new TagInfo("c:include", //$NON-NLS-1$
            30, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/listEntitysAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_32_2 = new TagInfo("c:include", //$NON-NLS-1$
            32, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/loadEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_36_2 = new TagInfo("c:include", //$NON-NLS-1$
            36, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/newEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_38_2 = new TagInfo("c:include", //$NON-NLS-1$
            38, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/saveEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_40_2 = new TagInfo("c:include", //$NON-NLS-1$
            40, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/deleteEntityAndroid.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_21 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_21); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_21.setRuntimeParent(null);
        _jettag_c_get_1_21.setTagInfo(_td_c_get_1_21);
        _jettag_c_get_1_21.doStart(context, out);
        _jettag_c_get_1_21.doEnd();
        out.write("_app.controller;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import android.os.Bundle;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.os.Message;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_5_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_5_20.setRuntimeParent(null);
        _jettag_c_get_5_20.setTagInfo(_td_c_get_5_20);
        _jettag_c_get_5_20.doStart(context, out);
        _jettag_c_get_5_20.doEnd();
        out.write("_app.R;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_20.setRuntimeParent(null);
        _jettag_c_get_6_20.setTagInfo(_td_c_get_6_20);
        _jettag_c_get_6_20.doStart(context, out);
        _jettag_c_get_6_20.doEnd();
        out.write("_app.data.KeyData;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_7_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_7_20.setRuntimeParent(null);
        _jettag_c_get_7_20.setTagInfo(_td_c_get_7_20);
        _jettag_c_get_7_20.doStart(context, out);
        _jettag_c_get_7_20.doEnd();
        out.write("_app.domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_8_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_8_20.setRuntimeParent(null);
        _jettag_c_get_8_20.setTagInfo(_td_c_get_8_20);
        _jettag_c_get_8_20.doStart(context, out);
        _jettag_c_get_8_20.doEnd();
        out.write("_app.util.HttpUtil;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.google.gson.Gson;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.google.gson.reflect.TypeToken;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.io.IOException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.net.SocketTimeoutException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.security.cert.CertificateException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.ArrayList;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.HashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.LinkedHashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Timer;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.TimerTask;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.os.Handler;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.util.Log;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.jetbrains.annotations.NotNull;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Call;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Callback;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Response;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_26_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_26_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_26_1.setRuntimeParent(null);
        _jettag_java_format_26_1.setTagInfo(_td_java_format_26_1);
        _jettag_java_format_26_1.doStart(context, out);
        JET2Writer _jettag_java_format_26_1_saved_out = out;
        while (_jettag_java_format_26_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(" ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_27_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_27_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_27_14.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_get_27_14.setTagInfo(_td_c_get_27_14);
            _jettag_c_get_27_14.doStart(context, out);
            _jettag_c_get_27_14.doEnd();
            out.write("Controller{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tprivate static final String Url = \"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_28_37 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_28_37); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_28_37.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_get_28_37.setTagInfo(_td_c_get_28_37);
            _jettag_c_get_28_37.doStart(context, out);
            _jettag_c_get_28_37.doEnd();
            out.write("\";");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_30_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_30_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_30_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_30_2.setTagInfo(_td_c_include_30_2);
            _jettag_c_include_30_2.doStart(context, out);
            _jettag_c_include_30_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_32_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_32_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_32_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_32_2.setTagInfo(_td_c_include_32_2);
            _jettag_c_include_32_2.doStart(context, out);
            _jettag_c_include_32_2.doEnd();
            //
            //	<c:include template="templates/content/java/controller/getEntityAndroid.jet"/>
            //	
            RuntimeTagElement _jettag_c_include_36_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_36_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_36_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_36_2.setTagInfo(_td_c_include_36_2);
            _jettag_c_include_36_2.doStart(context, out);
            _jettag_c_include_36_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_38_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_38_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_38_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_38_2.setTagInfo(_td_c_include_38_2);
            _jettag_c_include_38_2.doStart(context, out);
            _jettag_c_include_38_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_40_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_40_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_40_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_40_2.setTagInfo(_td_c_include_40_2);
            _jettag_c_include_40_2.doStart(context, out);
            _jettag_c_include_40_2.doEnd();
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_26_1.handleBodyContent(out);
        }
        out = _jettag_java_format_26_1_saved_out;
        _jettag_java_format_26_1.doEnd();
    }
}
